#!/bin/sh
mkdir -p ORACLE_ADMIN_DIR/adump
mkdir -p ORACLE_ADMIN_DIR/dpdump
mkdir -p ORACLE_ADMIN_DIR/pfile
mkdir -p ORACLE_ADMIN_DIR/logs
mkdir -p ORACLE_ARCH_DIR/ORACLE_HOME_NAME/archivelog
mkdir -p ORACLE_HOME/dbs
mkdir -p ORACLE_TS_DIR/
mkdir -p ORACLE_REDO1_DIR/
mkdir -p ORACLE_REDO2_DIR/
ORACLEHOME
ORACLE_SID=ORACLE_HOME_NAME; export ORACLE_SID
PATH=ORACLE_HOME/bin:$PATH; export PATH
echo "ORACLE_HOME_NAME:ORACLE_HOME:Y" >> /etc/oratab
ORACLE_HOME/bin/sqlplus /nolog @ORACLE_ADMIN_DIR/scripts/ORACLE_HOME_NAME.sql
